package com.gz.service;

import com.gz.entity.BookCollection;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gz.entity.MyPageData;

import java.util.List;

/**
* @author 龙龙与贝儿
* @description 针对表【t_book_collection】的数据库操作Service
* @createDate 2025-05-23 21:16:27
*/
public interface BookCollectionService extends IService<BookCollection> {

    void addCollection(Long userId, Long bookId);

    void deleteCollection(Long userId, Long bookId);

    Boolean checkIsStorage(Long userId, Long bookId);

    List<BookCollection> selectCollectionStorageByUserId(Long userId);

    MyPageData getPageByBookIds(Long userId, int pageNum, int pageSize);
}
